<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
	<meta charset="UTF-8">
	<title>文档标题</title>
	<!-- 优先使用 IE 最新版本和 Chrome -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	
	<!-- 开启响应式 -->
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no" />
	
	<!-- SEO页面关键词 -->
	<meta name="keywords" content="your keywords" />
	
	<!-- SEO页面描述 -->
	<meta name="description" content="your description" />
	
	<link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css">
</head>
<body>
	
	<input type="text" id="a1">
	<div id="a2" style="width:100px;height:100px;background:#f00"></div>

	<script src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
	<script src="http://apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script>
	<script src="兼容性很强的ajax/$Ajax.js"></script>
	<script>
		$(document).ready(function(){
			$("#a1").on("keypress",function(event){
				if(event.key === "Enter"){
					$("#a2").trigger('click');
				}
			});
			document.getElementById('a2').onclick = function(){
				console.log(111);
			};
		});
	
	</script>
</body>
</html>